<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<?php echo $cabecalho; ?>
<?php echo $menu_esq; ?>
<div id="mainContent">
<h1>Lista de Acessos</h1>
<div>
<?php echo html::anchor("access/criar", "Criar Novo"); ?>
</div>
<p>
<?php echo form::open('access/listar', array('method'=>'post'))?>
<table width="100%" border="1">
      <tr>
      	<td>&nbsp;</td>
        <td>username</td>
      </tr>

<?php 
	foreach($accesss as $access){
		echo "
		<tr>
			<td>".form::checkbox('access_id[]', $access->id)."</td>
			<td>$access->file &nbsp;</td>
		</tr>";
	}
?>
      <tr>
        <td>&nbsp;</td>
        <td>
        	<?php echo form::submit('act', 'Ver');?>&nbsp;
        	<?php echo form::submit('act', 'Editar');?>&nbsp;
        	<?php echo form::submit('act', 'Deletar');?>&nbsp;
        </td>
      </tr>
    </table>
<?php echo form::close();?>
</p>
<!-- end #mainContent --></div>
<?php echo $rodape; ?>